package com.cn.front.feign;

import com.cn.common.pojo.ResultModel;
import com.cn.front.feign.fallBack.TeamForHomeFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

@Primary
@FeignClient(value = "team",path = "team",fallback = TeamForHomeFallBack.class)
public interface TeamForHomeFeign {
    @GetMapping("team")
    ResultModel team();
    @GetMapping("teamForTeam")
    ResultModel teamForTeam();
}

